package com.mzj.saas.mservice.contract.repository;

import com.mzj.saas.mservice.contract.entity.ContractTemplate;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;


public interface ContractTemplateRepository extends PagingAndSortingRepository<ContractTemplate, Long>, JpaSpecificationExecutor<ContractTemplate> {
    ContractTemplate findByContractTemplateNumber(String contractTemplateNumber);

    List<ContractTemplate> findByOrgIdAndStatusAndOperatorStatus(Long orgId, Integer status, Integer operatorStatus);
}
